﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Menu.ascx.cs" Inherits="Admin_Controls_Menu" %>
<div id="menu">
    <ul class="menu">
        <li><a href="/" class="parent"><span>Trang chủ</span></a> </li>
        <%if (CheckRole("Administrators"))
          { %>
        <li><a href="#" class="parent"><span>Thành viên</span></a>
            <div>
                <ul>
                    <li><a href="/Admin/Security/CreateUser.aspx"><span>Thêm thành viên</span></a></li>
                    <li><a href="/Admin/Security/ManageUsers.aspx"><span>Phân quyền</span></a></li>
                </ul>
            </div>
        </li>
        <%} %>
        <%if (CheckRole("Administrators")||CheckRole("EditorNews"))
          { %>
        <li><a href="#" class="parent"><span>Tin tức</span></a>
            <div>
                <ul>
                    <li><a href="#" class="parent"><span>Loại tin tức</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/Category/CategoryAE.aspx"><span>Thêm loại tin tức</span></a></li>
                                <li><a href="/Admin/Module/Category/CategoryList.aspx"><span>Danh sách loại tin tức</span></a></li>
                            </ul>
                        </div>
                    </li>
                    <li><a href="#" class="parent"><span>Tin tức</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/News/NewsAE.aspx"><span>Thêm tin tức</span></a></li>
                                <li><a href="/Admin/Module/News/NewsList.aspx"><span>Danh sách tin tức</span></a></li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>
        </li>
        <%} %>
        <%if (CheckRole("Administrators")||CheckRole("EditorPhotos"))
          { %>
        <li><a href="#" class="parent"><span>Hình ảnh</span></a>
            <div>
                <ul>
                    <li><a href="#" class="parent"><span>Album</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/Album/AlbumAE.aspx"><span>Thêm Album</span></a></li>
                                <li><a href="/Admin/Module/Album/AlbumList.aspx"><span>Danh sách Album</span></a></li>
                            </ul>
                        </div>
                    </li>
                    <%--<li><a href="#" class="parent"><span>Hình ảnh</span></a>
                        <div>
                            <ul>
                                <li><a href="#"><span>Thêm hình ảnh</span></a></li>
                                <li><a href="#"><span>Danh sách hình ảnh</span></a></li>
                            </ul>
                        </div>
                    </li>--%>
                </ul>
            </div>
        </li>
        <%} %>
        <%if (CheckRole("Administrators")||CheckRole("EditorVideo"))
          { %>
        <li><a href="#" class="parent"><span>Video</span></a>
            <div>
                <ul>
                    <li><a href="#" class="parent"><span>Loại video</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/VideoCategory/VideoCategoryAE.aspx"><span>Thêm loại video</span></a></li>
                                <li><a href="/Admin/Module/VideoCategory/VideoCategoryList.aspx"><span>DS loại video</span></a></li>
                            </ul>
                        </div>
                    </li>
                    <li><a href="#" class="parent"><span>Video</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/Video/VideoAE.aspx"><span>Thêm video file</span></a></li>
                                <li><a href="/Admin/Module/Video/VideoAE1.aspx"><span>Thêm video source</span></a></li>
                                <li><a href="/Admin/Module/Video/VideoList.aspx"><span>Danh sách video</span></a></li>
                            </ul>
                        </div>
                    </li>
                    <li><a href="#" class="parent"><span>Video Type Code</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/TypeCode/TypeCodeAE.aspx"><span>Thêm TypeCode</span></a></li>
                                <li><a href="/Admin/Module/TypeCode/TypeCodeList.aspx"><span>DS TypeCode</span></a></li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>
        </li>
        <%} %>
        <%if (CheckRole("Administrators"))
          { %>
        <li><a href="#" class="parent"><span>Menu</span></a>
            <div>
                <ul>
                    <li><a href="#" class="parent"><span>Loại menu</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/MenuType/MenuTypeAE.aspx"><span>Thêm loại menu</span></a></li>
                                <li><a href="/Admin/Module/MenuType/MenuTypeList.aspx"><span>DS loại menu</span></a></li>
                            </ul>
                        </div>
                    </li>
                    <li><a href="#" class="parent"><span>Menu</span></a>
                        <div>
                            <ul>
                                <li><a href="/Admin/Module/Menu/MenuAE.aspx"><span>Thêm menu</span></a></li>
                                <li><a href="/Admin/Module/Menu/MenuList.aspx"><span>Danh menu</span></a></li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>
        </li>
        <li><a href="#"><span>Cài đặt</span></a>
            <div>
                <ul>
                    <li><a href="/Admin/Module/Template/TemplateAE.aspx"><span>Thêm cài đặt</span></a>
                    </li>
                    <li><a href="/Admin/Module/Template/TemplateList.aspx"><span>Danh sách cài đặt</span></a>
                    </li>
                </ul>
            </div>
        </li>
        <%} %>
        <li>
            <asp:LoginStatus ID="LoginStatus1" runat="server" ForeColor="White" LogoutText="Đăng xuất" />
        </li>
    </ul>
</div>
